package com.crm.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;


/**
 * The persistent class for the DISPATCHER_DETAILS database table.
 * 
 */
@Entity
@Table(name="DISPATCHER_DETAILS")
@NamedQuery(name="DispatcherDetail.findAll", query="SELECT d FROM DispatcherDetail d")
public class DispatcherDetail implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(initialValue = 1, allocationSize = 1,name="DISPATCHER_DETAILS_DISPATCHERDETAILSID_GENERATOR", sequenceName="SEQ2")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="DISPATCHER_DETAILS_DISPATCHERDETAILSID_GENERATOR")
	@Column(name="DISPATCHER_DETAILS_ID")
	private Long dispatcherDetailsId;

	@Column(name="DISPATCHER_DETAILS_IS_DEL")
	private String dispatcherDetailsIsDel;

	@Column(name="FK_DISPATCHER_ID")
	private BigDecimal fkDispatcherId;

	@Column(name="P_ID")
	private BigDecimal pId;

	@Column(name="PRODUCT_ACCOUNT")
	private BigDecimal productAccount;

	//bi-directional many-to-one association to Dispatcher
	@ManyToOne
	@JoinColumn(name="DISPATCHER_ID")
	private Dispatcher dispatcher;

	public DispatcherDetail() {
	}

	public Long getDispatcherDetailsId() {
		return this.dispatcherDetailsId;
	}

	public void setDispatcherDetailsId(Long dispatcherDetailsId) {
		this.dispatcherDetailsId = dispatcherDetailsId;
	}

	public String getDispatcherDetailsIsDel() {
		return this.dispatcherDetailsIsDel;
	}

	public void setDispatcherDetailsIsDel(String dispatcherDetailsIsDel) {
		this.dispatcherDetailsIsDel = dispatcherDetailsIsDel;
	}

	public BigDecimal getFkDispatcherId() {
		return this.fkDispatcherId;
	}

	public void setFkDispatcherId(BigDecimal fkDispatcherId) {
		this.fkDispatcherId = fkDispatcherId;
	}

	public BigDecimal getPId() {
		return this.pId;
	}

	public void setPId(BigDecimal pId) {
		this.pId = pId;
	}

	public BigDecimal getProductAccount() {
		return this.productAccount;
	}

	public void setProductAccount(BigDecimal productAccount) {
		this.productAccount = productAccount;
	}

	public Dispatcher getDispatcher() {
		return this.dispatcher;
	}

	public void setDispatcher(Dispatcher dispatcher) {
		this.dispatcher = dispatcher;
	}

	@Override
	public String toString() {
		return "DispatcherDetail{" +
				"dispatcherDetailsId=" + dispatcherDetailsId +
				", dispatcherDetailsIsDel='" + dispatcherDetailsIsDel + '\'' +
				", fkDispatcherId=" + fkDispatcherId +
				", pId=" + pId +
				", productAccount=" + productAccount +
				", dispatcher=" + dispatcher +
				'}';
	}
}